package com.cys.mybatis.transaction;

import java.sql.Connection;
import java.sql.SQLException;

/**
 * @Author: cys
 * @description:事务接口
 * @CreateTime: 2024-10-25  12:04
 * @Version: 1.0
 */
public interface Transaction {

    Connection getConnection() throws SQLException;

    void commit() throws SQLException;

    void rollback() throws SQLException;

    void close() throws SQLException;
}
